/*
 * @Author: Wangtao
 * @Date: 2022-04-15 09:56:30
 * @LastEditors: Wangtao
 * @LastEditTime: 2022-04-19 09:59:06
 */
const route = {
  path: '/quality_check',
  redirect: '/quality_check/index',
  meta: {
    roles: ['quality_check'],
    title: '质检',
    icon: 'waihurenwu-weixuan',
    activeIcon: 'waihurenwu-xuanzhong',
    group: 'toolBar'
  },
  component: () => import(/* webpackChunkName: "main-index" */ '@views/index.vue'),
  children: [
    {
      path: 'index',
      name: 'qualityCheck',
      meta: {
        roles: ['quality_check']
      },
      component: () => import(/* webpackChunkName: "quality-test" */ '@/views/qualityCheck/index.vue'),
      children: [
        {
          meta: {
            roles: ['qc_webchat_session_score'],
            title: '质检评分',
            group: 'chat_test'
          },
          path: 'qc_webchat_session_score',
          name: 'qualityScore',
          component: () => import(/* webpackChunkName: "quality-test" */ '@/views/qualityCheck/score/index.vue')
        },
        {
          meta: {
            roles: ['qc_webchat_session_query'],
            title: '结果查询',
            group: 'chat_test'
          },
          path: 'qc_webchat_session_query',
          name: 'resultQuery',
          component: () => import(/* webpackChunkName: "quality-test" */ '@/views/qualityCheck/result/index.vue')
        },
        {
          meta: {
            roles: ['qc_webchat_session_config'],
            title: '会话模板配置',
            group: 'quality_config'
          },
          path: 'qc_webchat_session_config',
          name: 'wechatConfig',
          component: () => import(/* webpackChunkName: "quality-test" */ '@/views/qualityCheck/config/index.vue')
        }
      ]
    }
  ]
}

export default route
